#!/bin/sh

#   bridge-utils (for brctl, to manipulate bridges)
#   uml_utilities (for tunctl, to manipulate taps)
#   sudo (for manipulating bridges and tunnels as root)

echo "/etc/qemu-ifdown"


#####################################cut qemu-ifdown ###############################
#!/bin/sh
# qemu-ifdown
# Script to bring down and delete bridge br0 when QEMU exits
#
# Bring down eth0 and br0
# then run the eth0 up script which should restart the firestarter firewall and reconfig the normal ip onto eth0
# if you do not use eth0 as the primary, change it to your interface name
#   ETHX=eth0
#   /sbin/ifdown ${ETHX}
#   /sbin/ifdown br0
#   /sbin/ifconfig br0 down
#   # Delete the bridge
#   #
#   /usr/sbin/brctl delbr br0
#   #
#   # bring up eth0 in "normal" mode
#   #
#   /sbin/ifup ${ETHX}
#   #start firewalls again
#   /sbin/service firestarter start
#   /sbin/service iptables start
